package com.mytrip.base.annotation.reqcache;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @project backend
 * 
 * @author <a href="mailto:yuanchongyu1@163.com">yuanchongyu</a>
 * 
 * @createDate Aug 20, 2010 3:18:37 PM
 * 
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target( { ElementType.METHOD })
public @interface ReqCache{
	public enum Operate{
		GET_AND_PUT, UPDATE, UPDATE_BY_RESULT, DELETE, DELETE_BY_RESULT
	};

	Operate operate() default Operate.GET_AND_PUT;

	String attrKey();

	int[] keyIdxs() default {0};
}
